from django.urls import path, re_path
from . import views

urlpatterns = [
    path('', views.login, name='login'),
    re_path(r'main/$', views.main, name='main'),
    path('main/signUp/', views.sign_up, name='sign_up'),
    path('showUsers/', views.show_users, name='show_users'),
    path('updateStatus/', views.update_status, name='update_status'),
    path('addRight/', views.add_right, name='add_right'),
    path('getAllRights/', views.get_all_rights, name='get_all_rights'),
    path('getRightsByLevel/', views.get_right_by_level, name='get_right_by_level'),


    path('addRole/', views.add_role, name='add_role'),
    path('rmRole/', views.rm_role, name='rm_role'),
    path('updateRole/', views.update_role, name='update_role'),
    path('getAllRoles/', views.get_all_roles, name='get_all_roles'),
    path('getRolesByLevel/', views.get_roles_by_level, name='get_roles_by_level'),
    path('getAllTreeAuth/', views.get_all_tree_auth, name='get_all_tree_auth'),
    path('getUserTreeAuth/', views.get_user_tree_auth, name='get_user_tree_auth'),
    path('addRoleAuth/', views.add_role_auth, name='add_role_auth'),
    path('rmRoleAuth/', views.rm_role_auth, name='rm_role_auth'),



    path('main/updateUsers/', views.update_users, name='update_users'),
    path('main/disableUsers/', views.disable_users, name='disable_users'),
    path('main/check_unique/', views.check_unique, name='check_unique'),



    path('test/', views.test, name='test'),
]
